//
//  SCBoxCell.m
//  Shuaiche
//
//  Created by zzs on 2017/12/28.
//  Copyright © 2017年 zzs. All rights reserved.
//

#import "SCBoxCell.h"

#define SCColor(hex) [UIColor colorWithRed:((hex>>16)&0xff)/255. green:((hex>>8)&0xff)/255. blue:(hex&0xff)/255. alpha:1.0]
@implementation SCBoxCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    if(selected){
        self.textLabel.textColor = SCColor(0xf8603a);
    }else{
        self.textLabel.textColor = [UIColor blackColor];
    }
}

- (IBAction)moreBtnClicked:(id)sender {
    if([self.delegate respondsToSelector:@selector(showSpeciesWithCell:)]){
        [self.delegate showSpeciesWithCell:self];
    }
}


@end
